import request from '@/utils/request'

// 企业入驻-最近的企业信息和草稿的门店
export function getLatestUnFinishedEnterprise(data = {}) {
  return request.post('/enterprise/getLatestUnFinishedEnterprise', data)
}

// 企业入驻-提交资质信息
export function createAptitude(data = {}) {
  return request.post('/enterprise/aptitude/create', data)
}

// 企业入驻-提交收款信息
export function createPayment(data = {}) {
  return request.post('/enterprise/payment/create', data)
}

// 企业入驻-提交门店信息
export function createSite(data = {}) {
  return request.post('/enterprise/site/create', data)
}

// 获取当前登录人有哪些审核完成的企业 用于右上角选择
export function getAllApprovedEnterprises(data = {}) {
  return request.post('/enterprise/getAllApprovedEnterprises', data)
}

// 根据企业ID获取已完成审核的门店 用于左上角选择
export function getAllApprovedSiteByEnterpriseId(params = {}) {
  return request.get('/enterprise/getAllApprovedSiteByEnterpriseId', { params })
}

// 签署协议
export function signAgreement(data = {}) {
  return request.post('/enterprise/signAgreement', data)
}

// 获取站点的业态类目
export function getBusinessType(params = {}) {
  return request.get('/enterprise/site/getBusinessType', { params })
}

// 查询所有站点
export function getAllSiteList(data = {}) {
  return request.post('/enterprise/selectAllSites', data)
}

